<!--
 * @Author: HeAo
 * @Date: 2022-08-23 14:21:01
 * @LastEditTime: 2022-08-23 19:35:09
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \JavaScripe\day-12\01-dom初体验.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="container">我是div标签</div>
  <script>
    // 获取标签
    var container = document.getElementById('container')
    // 创建一个节点
    var newP = document.createElement('p')
    // 给节点设置内容或样式
    newP.innerHTML = '我是p标签'
    newP.style.color = ReadableStream
    // 给节点添加到页面对应的结构中
    container.appendChild(newP)
  </script>

</body>

</html>